
//倒计时
function daojishi() {
	var box = document.getElementsByClassName("timer")[0];

	var mytime = new Date();
	var tian = 31 - mytime.getDate();
	var shi = 23 - mytime.getHours();
	var fen = 59 - mytime.getMinutes();
	var miao = 59 - mytime.getSeconds();
	box.innerHTML = tian + "天" + shi + "时" + fen + "分" + miao + "秒";

}
setInterval(daojishi, 1000);